<?php
//后台基类
//@author wangxin3@
//virsion 1.0

class AdminController extends BaseController{

    protected $adminUserName;   //管理员帐号

    protected $ip;              //客户端IP

    public function __construct($state, $action) {
        parent::__construct($state, $action);
        $this->ip = Ip::getClientIp();
        /*
        //控制外网IP访问管理功能
        if (substr($this->ip, 0, 3) != '10.') {
            header("HTTP/1.0 404 Not Found");
            exit;
        }
        //获取发布系统管理员名称
        $key = base64_encode('login');
        $key = str_replace("=", "*", $key);
        if (empty($_COOKIE[$key])) {
            $this->display("./login.html");
            exit;
        }
        $this->adminUserName = base64_decode(str_replace("*", "=", $_COOKIE[$key]));
        */
    }
}
?>
